package net.mihome.app.bean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.mihome.app.AppContext;
import net.mihome.app.R;
import net.mihome.app.bean.net.ResponsePojo;

public class Banner {
	private Long id;
	private List<Map<String, Object>> maps = new  ArrayList<Map<String,Object>>();
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	public List<Map<String, Object>> getMaps() {
		return maps;
	}
	public void setMaps(List<Map<String, Object>> maps) {
		this.maps = maps;
	}
	public static Banner parse(ResponsePojo<Map> responsePojo){
		 //添加图片 
        Banner banner=new Banner();
        Map<String, Object> map1 = new  HashMap<String,Object>();
        map1.put("image", "http://210.45.241.195:8181/images/thumb/b354c67a-db10-464d-8bb7-a197f54e5e9e.jpg");
        map1.put("title","宅服务");
        map1.put("content","为您提供多种社区服务");
        
        Map<String, Object> map2 = new  HashMap<String,Object>();
        map2.put("image", "http://210.45.241.195:8181/images/thumb/b354c67a-db10-464d-8bb7-a197f54e5e9e.jpg");
        map2.put("title","报修");
        map2.put("content","足不出户即可报修，还可查询进度呦");
        
        Map<String, Object> map3 = new  HashMap<String,Object>();
        map3.put("image", "http://210.45.241.195:8181/images/thumb/b354c67a-db10-464d-8bb7-a197f54e5e9e.jpg");
        map3.put("title","办证");
        map3.put("content","为您提供各种办证指南");
        
        Map<String, Object> map4 = new  HashMap<String,Object>();
        map4.put("image", "http://210.45.241.195:8181/images/thumb/b354c67a-db10-464d-8bb7-a197f54e5e9e.jpg");
        map4.put("title","活动");
        map4.put("content","周末聚会、组织活动");
        
        Map<String, Object> map5 = new  HashMap<String,Object>();
        map5.put("image", "http://210.45.241.195:8181/images/thumb/b354c67a-db10-464d-8bb7-a197f54e5e9e.jpg");
        map5.put("title","商家");
        map5.put("content","大量周边商家信息");
        banner.getMaps().add(map1);
        banner.getMaps().add(map2);
        banner.getMaps().add(map3);
        banner.getMaps().add(map4);
        banner.getMaps().add(map5);
		return banner;
	}
}
